import waveRequest from "@/api/request.js";
import {ServerInfo} from "@/config/ServerInfoConfig.js";

export const fileUploadSingle = (data) => waveRequest({
    method: 'post',
    url: '/fileUpload/upload/single',
    data
})


export const fileUploadByList = (data) => waveRequest({
    method: 'post',
    url: '/fileUpload/upload/list',
    data
})

export const fileUploadDelete = (data) => waveRequest({
    url: '/fileUpload/delete',
    method: 'post',
    data
})

export const fileUploadModify = (data) => waveRequest({
    url: '/fileUpload/modify',
    method: 'post',
    data
})

export const fileUploadQuery = (params) => waveRequest({
    url: '/fileUpload/query',
    method: 'get',
    params
})

export const fileUploadList = (params) => waveRequest({
    url: '/fileUpload/list',
    method: 'get',
    params
})

export const fileUploadPage = (params) => waveRequest({
    url: '/fileUpload/page',
    method: 'get',
    params
})

export const fileTypeList = () => waveRequest({
    url: '/fileUpload/fileTypeList',
    method: 'get',
})